<?php
//decode by http://奥森世纪/
namespace app\home\validate; class Withdraw extends Base { protected $rule = [ 'pay_method|提现方式' => 'require|checkPayMethod:', 'account|提现账号' => 'require', 'realname|真实姓名' => 'require', 'credit2|提现金额' => 'require' ]; protected function checkPayMethod($pay_method){ if(!in_array($pay_method,[0,1,2])){ return '提现方式选择错误'; } return true; } }